﻿using AutoMapper;
using HongYeSystemWebApi.Templet.Entity.Entities;
using HongYeSystemWebApi.Templet.Entity.Request.SysBankinfo;
using HongYeSystemWebApi.Templet.Entity.Request.SysCompanyEntity;
using HongYeSystemWebApi.Templet.Entity.Request.SysCostType;
using HongYeSystemWebApi.Templet.Entity.Request.SysExpenditure;
using HongYeSystemWebApi.Templet.Entity.Request.SysProject;
using HongYeSystemWebApi.Templet.Entity.Request.SysSupplier;
using HongYeSystemWebApi.Templet.Entity.Request.SystemInvoice;
using HongYeSystemWebApi.Templet.Entity.Response.Project;
using HongYeSystemWebApi.Templet.Entity.Response.SysBankinfo;
using HongYeSystemWebApi.Templet.Entity.Response.SysCompanyEntity;
using HongYeSystemWebApi.Templet.Entity.Response.SysCostType;
using HongYeSystemWebApi.Templet.Entity.Response.SysExpenditure;
using HongYeSystemWebApi.Templet.Entity.Response.SysSupplier;
using HongYeSystemWebApi.Templet.Entity.Response.SystemInvoice;
using System;
using System.Collections.Generic;
using System.Text;

namespace HongYeSystemWebApi.Templet.Entity
{
    public class AutoMapperConfig : Profile
    {
        public AutoMapperConfig()
        {
            CreateMap<SysBankinfoInsertRequest, Bankinfo>();
            CreateMap<SysBankinfoUpdataRequest, Bankinfo>();
            CreateMap<Bankinfo, SysBankinfoPageResponse>();

            
            CreateMap<SysCompanyEntityInsertRequest, CompanyEntity>();
            CreateMap<SysCompanyEntityUpdataRequest, CompanyEntity>();
            CreateMap<CompanyEntity, SysCompanyDataPageResponse>();


            CreateMap<SysCostTypeInsertRequest, CostType>();
            CreateMap<SysCostTypeUpdataRequest, CostType>();
            CreateMap<CostType, SysCostTypeDataPageResponse>();

            CreateMap<SysExpenditureUpdataRequest, Expenditure>();
            CreateMap<SysExpenditureInsertRequest, Expenditure>();
            CreateMap<Expenditure, SysExpenditureDataPageResponse>();

            CreateMap<SysProjectUpdataRequest, ProjectEntity>();
            CreateMap<SysProjectInsertRequest, ProjectEntity>();
            CreateMap<ProjectEntity, SysProjectDataPageResponse>();



            CreateMap<SysSupplierUpdataRequest, Supplier>();
            CreateMap<SysSupplierInsertRequest, Supplier>();
            CreateMap<Supplier, SysSupplierDataPageResponse>();


            
            CreateMap<SystemInvoiceInsertRequset, SystemInvoice>();
            CreateMap<SystemInvoiceUpdateRequset, SystemInvoice>();
            CreateMap<SystemInvoice, SystemInvoiceDataPageResponse>();

        }
    }
}
